# -*- coding: utf-8 -*-
# @Time    : 2021/10/17 11:48
# @Author  : super

class SweetPotatoClass():
	def __init__(self):
		self.time = 0
		self.status = "生的"
		self.flavour = []

	def info(self, time):
		self.time = self.time+time
		if self.time > 0 and self.time <= 3:
			self.status = "生的"
		elif self.time > 3 and self.time <= 5:
			self.status = "半生不熟"
		elif self.time > 5 and self.time <= 8:
			self.status = "熟了"
		else:
			self.status = "糊了"

	def __str__(self):
		return f"这是一个地瓜类.烤的时间：{self.time}，烤的状态：{self.status}，放的调料：{self.flavour}"


sweet = SweetPotatoClass()
sweet.info(5)
sweet.info(1)
print(sweet)